package com.attilax.io;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

import org.apache.commons.io.IOUtils;

import com.google.common.base.Joiner;

public class StreamUtil {

	public static String toStr(InputStream inputStream, String encode) throws IOException {
		List li=   IOUtils.readLines(inputStream,encode);
		return Joiner.on("\r\rn").join(li);
		
	}

}
